/*
 * commontools.c
 *
 *  Created on: Apr 22, 2011
 *      Author: mistadj
 */

#include "commontools.h"
#include <stdlib.h>
#include <string.h>

char* copyName(char* name) {
	char* nameCopy = malloc(strlen(name)+1);
	if (nameCopy == NULL) {
		return NULL;
	}
	strcpy(nameCopy, name);
	return nameCopy;
}
